export default () => {
  window.addEventListener('popstate', function (e) {
    // 返回键返回处理
    let goback = document.querySelector('.goback')
    if (goback && goback.href) {
      console.log(goback)
      window.history.pushState(null, null, goback.href)
    }
  }, false)
}
